package com.book.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * post
 * @author 
 */
@Data
@TableName("post")
public class Post implements Serializable {
    /**
     * 论坛的id
     */
    @TableId
    private int id;

    /**
     * 论坛标题
     */
    private String title;

    /**
     * 具体内容
     */
    private String content;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 发帖时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date postingTime;

    /**
     * 删除标志，0未删除，1已删除
     */
    @TableLogic
    private Integer delFlag;

    private static final long serialVersionUID = 1L;
}